<template>
  <div class="Home">
    <h2>Home组件</h2>
    <button @click="goto">跳转到雷神页面</button>
    <router-link to="/Main">访问后台主页</router-link>
    </div>

</template>

<script>
export default {
  methods: {
    goto () {
      // 通过编程式导航API，实现跳转
      this.$router.push('/movie/1')
    }
  }
}
</script>

<style>
.Home{
  height: 250px;
  background-color: aqua;
}
</style>
